package com.chance.cc.crawler.development.command.schedule.douyin;

import com.chance.cc.crawler.development.command.schedule.CrawlerJobScheduleCommand;

/**
 * @author bx
 * @date 2020/12/7 0007 10:23
 */
public class DYSearchPhoneCrawlerJobSchedule {

    private static CrawlerJobScheduleCommand crawlerJobScheduleCommand =
            new CrawlerJobScheduleCommand("192.168.1.215",9589);

    public static void main(String[] args) {

        publishDYPhoneCrawlerJobInfo("douyin_search-phone-realtime-cron");
//        deleteCrawlerJob("douyin_search-phone-realtime-cron");

    }

    public static void publishDYPhoneCrawlerJobInfo(String triggerKey){
        crawlerJobScheduleCommand.deleteCrawlerJob(triggerKey,"crawler_dev_host");
    }

    public static void deleteCrawlerJob(String triggerKey){
        crawlerJobScheduleCommand.deleteCrawlerJob(triggerKey,"crawler_dev_host");
    }

}
